package org.teziyou.ticket.web;

import org.teziyou.ticket.util.Maps;

import com.alibaba.fastjson.JSON;
import com.jfinal.core.Controller;

public class BaseController extends Controller {
	
	protected String success(String msg) {
		return JSON.toJSONString(Maps.newHashMap("isSuccess", true, "msg", msg));
	}
	
	protected String fail(String msg) {
		return JSON.toJSONString(Maps.newHashMap("isSuccess", false, "msg", msg));
	}

}
